package cn.gjh.bookmanager.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Ebookentry implements Serializable {
    private Integer id;

    private Integer categroyid;

    private String title;

    private String summary;

    private String uploaduser;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdate;

    private  Ebookcategory ebookcategory;

    @Override
    public String toString() {
        return "Ebookentry{" +
                "id=" + id +
                ", categroyid=" + categroyid +
                ", title='" + title + '\'' +
                ", summary='" + summary + '\'' +
                ", uploaduser='" + uploaduser + '\'' +
                ", createdate=" + createdate +
                ", ebookcategory=" + ebookcategory +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategroyid() {
        return categroyid;
    }

    public void setCategroyid(Integer categroyid) {
        this.categroyid = categroyid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getUploaduser() {
        return uploaduser;
    }

    public void setUploaduser(String uploaduser) {
        this.uploaduser = uploaduser;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Ebookcategory getEbookcategory() {
        return ebookcategory;
    }

    public void setEbookcategory(Ebookcategory ebookcategory) {
        this.ebookcategory = ebookcategory;
    }
}